<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>password</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	
	<script type="text/javascript">
		function check(form){
			var newp = passForm.elements[1].value;
			var renewp = passForm.elements[2].value;
			if(!(newp==renewp)){
				alert("新密码与确认密码不相同，请重新输入！")
				return false;
			}
		}
	</script>
  </head>
  
  <body>
  	<center>
    <form action="updateP" method="post" id="passForm" onsubmit="return check(this)">
    	<table style="margin-top: 50px;" width="280" height="137">
    		<tr>
    			<td>输入当前密码:</td>
    			<td><input type="password" name="currentP" maxlength="15" style="width:160px;height:20px;font-size:12px; color: #333333; border:1px solid #D0D0D0;"/></td>
    		</tr>
    		<tr>
    			<td></td>
    			<td></td>
    		</tr>
    		<tr>
    			<td></td>
    			<td></td>
    		</tr>
    		<tr>
    			<td>输入新的密码:</td>
    			<td><input type="password" name="newP" maxlength="15" style="width:160px;height:20px;font-size:12px; color: #333333; border:1px solid #D0D0D0;"/></td>
    		</tr>
    		<tr>
    			<td>输入确认密码:</td>
    			<td><input type="password" name="confirmP" maxlength="15" style="width:160px;height:20px;font-size:12px; color: #333333; border:1px solid #D0D0D0;"/></td>
    		</tr>
    		<tr>
    			
    			<td align="center"><input type="submit" value="确定"  /></td>
    			
    			<td align="center"><input type="reset" value="重置"  id="cancel"/></td>
    		</tr>
    	</table>
    </form>
    </center>
  </body>
</html>
